import java.sql.ResultSet;
import java.util.ArrayList;
import java.util.List;

public class ProductDAO {
    public List<Product> findAll(){
        List<Product> productList = new ArrayList<>();
        String query = "SELECT*FROM productss";
        try{
            ResultSet rs = JdbcUtil.excuteQuery(query);
            while(re.next()){
                Product product = new Product();
                product.setId(rs.getInt("id"));
                product.setName(rs.getString("name"));
            }
        }
    }
}
